//
//  ShellOrderViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/10/2.
//  Copyright © 2019 VV. All rights reserved.
//

#import "ShellOrderViewController.h"
#import "ShellOrderView.h"
#import "ShellOrderViewModel.h"


@interface ShellOrderViewController ()
@property (nonatomic,strong) ShellOrderView *orderView;

@property (nonatomic,strong) ShellOrderViewModel *viewModel;
@end

@implementation ShellOrderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = LZLocalizedString(@"订单");
    // Do any additional setup after loading the view.
    [self setupUI];
}



#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.orderView];
    [self.orderView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellOrderView *)orderView{
    
    if(!_orderView){
        _orderView = [[ShellOrderView alloc] initViewModel:self.viewModel];
    }
    return _orderView;
}

- (ShellOrderViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellOrderViewModel alloc] init];
    }
    return _viewModel;
}
@end
